{title}Ссылки{/title}

<div id="links">
    {foreach from=$links item="entry" key="category_name"}
        <h3 id="link_header">{$category_name|escape}</h3>
        <ul>
            {foreach from=$entry item="link"}
                {if $link.name}
                    {assign var="name" value=$link.name}
                {else}
                    {assign var="name" value=$link.url}
                {/if}
                <li><a href="{$link.url}">{$name}</a></li>
            {/foreach}
        </ul>
    {/foreach}
</div>
